<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1-20130512"/>
<title>3D Cell: CSG Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3D Cell
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1-20130512 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_c_s_g-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CSG Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A Constructive Solid Geometry (<a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a>) class.  
 <a href="class_c_s_g.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="csg_8h_source.html">csg.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a09bbc9336539ecf40021a9b3ec224afd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#a09bbc9336539ecf40021a9b3ec224afd">CSG</a> ()</td></tr>
<tr class="memdesc:a09bbc9336539ecf40021a9b3ec224afd"><td class="mdescLeft">&#160;</td><td class="mdescRight">A constructor.  <a href="#a09bbc9336539ecf40021a9b3ec224afd">More...</a><br/></td></tr>
<tr class="separator:a09bbc9336539ecf40021a9b3ec224afd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2a7fb864f2512b999b6794845e0134e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#ad2a7fb864f2512b999b6794845e0134e">clone</a> ()</td></tr>
<tr class="memdesc:ad2a7fb864f2512b999b6794845e0134e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone a new <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a> from this <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a>.  <a href="#ad2a7fb864f2512b999b6794845e0134e">More...</a><br/></td></tr>
<tr class="separator:ad2a7fb864f2512b999b6794845e0134e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cb07f9f14f4ec1c2c2975cb2fefae25"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_my_polygon.html">MyPolygon</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#a0cb07f9f14f4ec1c2c2975cb2fefae25">toPolygons</a> ()</td></tr>
<tr class="memdesc:a0cb07f9f14f4ec1c2c2975cb2fefae25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return all polygons in <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a>.  <a href="#a0cb07f9f14f4ec1c2c2975cb2fefae25">More...</a><br/></td></tr>
<tr class="separator:a0cb07f9f14f4ec1c2c2975cb2fefae25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada3c8616bd71a0a69a0e68c8eb8f90ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#ada3c8616bd71a0a69a0e68c8eb8f90ac">csg_union</a> (<a class="el" href="class_c_s_g.html">CSG</a> *csg)</td></tr>
<tr class="memdesc:ada3c8616bd71a0a69a0e68c8eb8f90ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Union operation.  <a href="#ada3c8616bd71a0a69a0e68c8eb8f90ac">More...</a><br/></td></tr>
<tr class="separator:ada3c8616bd71a0a69a0e68c8eb8f90ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5cbbee572b1e7f2f42f3312d09054f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#abf5cbbee572b1e7f2f42f3312d09054f">csg_subtract</a> (<a class="el" href="class_c_s_g.html">CSG</a> *csg)</td></tr>
<tr class="memdesc:abf5cbbee572b1e7f2f42f3312d09054f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtract operation.  <a href="#abf5cbbee572b1e7f2f42f3312d09054f">More...</a><br/></td></tr>
<tr class="separator:abf5cbbee572b1e7f2f42f3312d09054f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb0a7f38c1548a5e14051a3f16ce7113"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#adb0a7f38c1548a5e14051a3f16ce7113">csg_intersect</a> (<a class="el" href="class_c_s_g.html">CSG</a> *csg)</td></tr>
<tr class="memdesc:adb0a7f38c1548a5e14051a3f16ce7113"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersect operation.  <a href="#adb0a7f38c1548a5e14051a3f16ce7113">More...</a><br/></td></tr>
<tr class="separator:adb0a7f38c1548a5e14051a3f16ce7113"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad88c20bfc28d9b11b588686104738f4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#ad88c20bfc28d9b11b588686104738f4e">inverse</a> ()</td></tr>
<tr class="memdesc:ad88c20bfc28d9b11b588686104738f4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inverse operation.  <a href="#ad88c20bfc28d9b11b588686104738f4e">More...</a><br/></td></tr>
<tr class="separator:ad88c20bfc28d9b11b588686104738f4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a404d410933b49cbebc05019b495b954b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#a404d410933b49cbebc05019b495b954b">fromPolygons</a> (vector&lt; <a class="el" href="class_my_polygon.html">MyPolygon</a> &gt; <a class="el" href="class_c_s_g.html#aa4f886370350702a125ad5570158de66">polygons</a>)</td></tr>
<tr class="memdesc:a404d410933b49cbebc05019b495b954b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a> class from polygons.  <a href="#a404d410933b49cbebc05019b495b954b">More...</a><br/></td></tr>
<tr class="separator:a404d410933b49cbebc05019b495b954b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa4f886370350702a125ad5570158de66"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_my_polygon.html">MyPolygon</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_g.html#aa4f886370350702a125ad5570158de66">polygons</a></td></tr>
<tr class="memdesc:aa4f886370350702a125ad5570158de66"><td class="mdescLeft">&#160;</td><td class="mdescRight">All polygons of a mesh.  <a href="#aa4f886370350702a125ad5570158de66">More...</a><br/></td></tr>
<tr class="separator:aa4f886370350702a125ad5570158de66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A Constructive Solid Geometry (<a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a>) class. </p>
<p>The <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a> class supports boolean operations (union, subtract, intersect) of two meshes. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a09bbc9336539ecf40021a9b3ec224afd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CSG::CSG </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A constructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ad2a7fb864f2512b999b6794845e0134e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_s_g.html">CSG</a> * CSG::clone </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clone a new <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a> from this <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a>. </p>

</div>
</div>
<a class="anchor" id="adb0a7f38c1548a5e14051a3f16ce7113"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_s_g.html">CSG</a> * CSG::csg_intersect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td>
          <td class="paramname"><em>csg</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Intersect operation. </p>

</div>
</div>
<a class="anchor" id="abf5cbbee572b1e7f2f42f3312d09054f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_s_g.html">CSG</a> * CSG::csg_subtract </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td>
          <td class="paramname"><em>csg</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Subtract operation. </p>

</div>
</div>
<a class="anchor" id="ada3c8616bd71a0a69a0e68c8eb8f90ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_s_g.html">CSG</a> * CSG::csg_union </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_s_g.html">CSG</a> *&#160;</td>
          <td class="paramname"><em>csg</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Union operation. </p>

</div>
</div>
<a class="anchor" id="a404d410933b49cbebc05019b495b954b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_s_g.html">CSG</a> * CSG::fromPolygons </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="class_my_polygon.html">MyPolygon</a> &gt;&#160;</td>
          <td class="paramname"><em>polygons</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct a <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a> class from polygons. </p>

</div>
</div>
<a class="anchor" id="ad88c20bfc28d9b11b588686104738f4e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_s_g.html">CSG</a> * CSG::inverse </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inverse operation. </p>

</div>
</div>
<a class="anchor" id="a0cb07f9f14f4ec1c2c2975cb2fefae25"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt; <a class="el" href="class_my_polygon.html">MyPolygon</a> &gt; CSG::toPolygons </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return all polygons in <a class="el" href="class_c_s_g.html" title="A Constructive Solid Geometry (CSG) class. ">CSG</a>. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aa4f886370350702a125ad5570158de66"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;<a class="el" href="class_my_polygon.html">MyPolygon</a>&gt; CSG::polygons</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>All polygons of a mesh. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="csg_8h_source.html">csg.h</a></li>
<li><a class="el" href="csg_8cpp.html">csg.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 9 2013 15:49:58 for 3D Cell by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1-20130512
</small></address>
</body>
</html>
